﻿#pragma once

#include "MainWindow.g.h"
#include "AppService.h"

namespace winrt::NovelReader::implementation
{
	struct MainWindow : MainWindowT<MainWindow>
	{
		MainWindow() = default;
		void InitializeComponent();
		void Window_Activated(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::WindowActivatedEventArgs const& args);
		static uint64_t IdValue();

	private:
		static uint64_t s_idValue;
		winrt::NovelReader::TitleBarControl m_titleBar {nullptr}; 
		winrt::NovelReader::TitleBarViewModel m_titleBarViewModel {nullptr}; 
		winrt::NovelReader::MainPage m_mainPage {nullptr}; 
		winrt::NovelReader::MainPageViewModel m_mainPageViewModel {nullptr}; 
	};
}

namespace winrt::NovelReader::factory_implementation
{
	struct MainWindow : MainWindowT<MainWindow, implementation::MainWindow>
	{
	};
}
